{if $errors}
	{foreach from=$errors key=error_code item=error}
		{if $error_code == 'NOT_OWNER_OF_QUESTOINNAIRE'}
			<p class="error">[[You're not the owner of this questoinnaire]]</p>
		{/if}
	{/foreach}
{else}
	<h1>[[Create New Questionnaire]]</h1>
	<p class="error">[[You do not have permissions to add Questionnaires]]</p>
	{if !$authorized}
		{module name="users" function="login"}
	{/if}
{/if}